// ********************************************************
// >> File Name: /home/diabio/project/al_cache/al_cache/cache_policy.h
// >> Author: diabiolin
// >> Created Time: Sun 13 Apr 2025 12:55:51 PM CST
// >> Description: cache base_class_interface
// ********************************************************

#pragma once 

namespace al_cache{

template <typename Key, typename Value>
class CachePolicy{
public:
	virtual ~CachePolicy(){};

	// 添加缓存接口
	virtual void put(Key key, Value value) = 0;

	// 查找缓存接口
	virtual bool get(Key key, Value& value) = 0;
	virtual Value get(Key key) = 0;
};

} // namespace al_cache
